home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- #
- # Postflight installer script
- # Copyright 2008 Adobe Systems Incorporated. All Rights Reserved.
- #
-
- # ----------------------------------------------------------------------
- # [1] Store off version.txt in user-pref directory for
- # ping-mothership-on-first-launch/
- # ----------------------------------------------------------------------
- if [ ! -d ~/Library/Preferences/Macromedia/Flash\ Player/ ]; then
- mkdir ~/Library/Preferences/Macromedia/Flash\ Player/
- fi
-
- mv "/Library/Internet Plug-Ins/version.txt" ~/Library/Preferences/Macromedia/Flash\ Player/
-
- # ----------------------------------------------------------------------
- # [2] "touch" the Plugin bundle so Firefox knows it has been updated
- # (bug 233245)
- # ----------------------------------------------------------------------
- touch "/Library/Internet Plug-Ins/Flash Player.plugin"
-
- # ----------------------------------------------------------------------
- # [3] Remove any residual Flash Player.plugin that may be installed
- # in the current user's directory.
- # ----------------------------------------------------------------------
- osascript "$1/Contents/Resources/RemoveUserFPInstall.applescript"
-
- # ----------------------------------------------------------------------
- # [4] If express install (as evidenced by the existence of the file
- # "/tmp/FPExpressInstall.flag") then:
- # [a] Delete the self-contained updater
- # [b] Open the post-install webpage
- # [c] Remove the flag file
- # [d] Wait 1.5 seconds, then kill the Installer app
- # (bugs 236465 & 236466)
- # ----------------------------------------------------------------------
- if [ -f /tmp/FPExpressInstall.flag ]
- then
- rm "$HOME/Library/Preferences/Macromedia/Flash Player/www.macromedia.com/bin/fpupdatepl/fpupdatepl"
- sudo -u $USER open "http://www.macromedia.com/software/flash/about/installerRedirect.html"
- rm /tmp/FPExpressInstall.flag
- sleep 3
- killall Installer
- fi
-
- # ----------------------------------------------------------------------
- # [5] Delete "Flash Player Enabler.plugin" if it exists
- # (bug 237633)
- # ----------------------------------------------------------------------
- if [ -d "/Library/Internet Plug-Ins/Flash Player Enabler.plugin" ]
- then
- rm -rf "/Library/Internet Plug-Ins/Flash Player Enabler.plugin"
- fi
-
-
- # Exit successfully
- exit 0
-
- #end script
-